﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Fj.aspx.cs" Inherits="Fj"
    MasterPageFile="~/Site.master" %>

<%@ Register Assembly="DevExpress.Web.v10.2.Linq, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Data.Linq" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h1 class="DemoTitle">
        证书附件信息管理
    </h1>
    <div id="DemoArea">
        <div class="Spacer" style="height: 14px;">
        </div>
        <dx:ASPxGridView ID="gridView" runat="server" AutoGenerateColumns="False" Width="100%"
            ClientIDMode="AutoID" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
            CssPostfix="Office2010Blue" DataSourceID="LSMDSource" KeyFieldName="dwbh">
            <Columns>
                <dx:GridViewDataTextColumn Caption="单位编号" FieldName="dwbh" ShowInCustomizationForm="True"
                    VisibleIndex="1" Visible="false">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="单位名称" FieldName="dwmc" ShowInCustomizationForm="True"
                    VisibleIndex="1" Width="400px">
                </dx:GridViewDataTextColumn>
                <%--<dx:GridViewDataComboBoxColumn Caption="所属城区" FieldName="sscq" VisibleIndex="2">
                    <PropertiesComboBox Spacing="0" ValueType="System.String">
                    </PropertiesComboBox>
                </dx:GridViewDataComboBoxColumn>
                <dx:GridViewDataTextColumn Caption="证号" FieldName="zh" ShowInCustomizationForm="True"
                    VisibleIndex="5">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="负责人" FieldName="fzr" ShowInCustomizationForm="True"
                    VisibleIndex="6">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="发证日期" FieldName="fzrq" ShowInCustomizationForm="True"
                    VisibleIndex="8">
                </dx:GridViewDataTextColumn>--%>
                <dx:GridViewDataTextColumn Caption="企业附件" VisibleIndex="10" Width="200px">
                    <EditFormSettings CaptionLocation="Near" Visible="False" />
                    <DataItemTemplate>
                        <a href='FjUp.aspx?AID=<%#Eval("dwbh") %>'>上传附件</a> <a href='FileViewer.aspx?path=<%#Eval("fj") %>'>
                            查看附件</a>
                    </DataItemTemplate>
                </dx:GridViewDataTextColumn>
            </Columns>
            <SettingsPager PageSize="20">
                <Summary AllPagesText="当前第 {0}页,共 {1}页,({2}条记录)" 
                    Text="当前第 {0}页,共 {1}页,({2}条记录)" />
            </SettingsPager>
            <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanelOnStatusBar>
                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanel>
            </Images>
            <ImagesFilterControl>
                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanel>
            </ImagesFilterControl>
            <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                </Header>
                <LoadingPanel ImageSpacing="5px">
                </LoadingPanel>
            </Styles>
            <StylesPager>
                <PageNumber ForeColor="#3E4846">
                </PageNumber>
                <Summary ForeColor="#1E395B">
                </Summary>
            </StylesPager>
            <StylesEditors ButtonEditCellSpacing="0">
                <ProgressBar Height="21px">
                </ProgressBar>
            </StylesEditors>
        </dx:ASPxGridView>
        <dx:LinqServerModeDataSource ID="LSMDSource" runat="server" ContextTypeName="DAL.DataClassesDataContext"
            EnableDelete="True" EnableInsert="True" EnableUpdate="True" TableName="css_dwxx" />
    </div>
</asp:Content>
